/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: MenuServiceImpl
 * Author:   zhouheng
 * Date:     2018/7/4 16:42
 * Description: 菜单业务类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.hengby.hengcrud.modular.sys.service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hengby.hengcrud.core.node.MenuNode;
import com.hengby.hengcrud.modular.sys.mapper.MenuMapper;
import com.hengby.hengcrud.modular.sys.model.Menu;
import com.hengby.hengcrud.modular.sys.model.Role;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 〈一句话功能简述〉<br> 
 * 〈菜单业务类〉
 *
 * @author zhouheng
 * @create 2018/7/4
 * @since 1.0.0
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper,Menu> implements IMenuService{

    @Override
    public List<MenuNode> getMenusByRoleIds(List<Integer> roleIds) {

        return this.baseMapper.getMenusByRoleIds(roleIds);
    }
}